function Type0Function(){
	this.type = null;
	this.size = [];
	this.domain = [];
	this.range = [];
	this.perSample = null;
	this.order = null;
	this.encode = [];
	this.decode = [];
	this.sampleData = [];
}

Type0Function.prototype.ParseJson = function(arrayData){
	if(arrayData.length == 0) return;
	//var type0Fun = this;
	this.type = arrayData[0];
	this.size = arrayData[1];
	this.domain = arrayData[2];
	this.range = arrayData[3];
	this.perSample = arrayData[4];
	this.order = arrayData[5];
	this.encode = arrayData[6];
	this.decode = arrayData[7];
	this.sampleData = arrayData[8];
}

function Type2Function(){
	this.type = null;
	this.domain = [];
	this.range = [];
	this.defineFunRs0 = []; //when x == 0.0
	this.defineFunRs1 = []; //when x == 1.0
	this.exponent = null;
}

Type2Function.prototype.ParseJson = function(arrayData){
	if(arrayData.length == 0)return;
	//var type2Fun = this;
	this.type = arrayData[0];
	this.domain = arrayData[1];
	this.range = arrayData[2];
	this.defineFunRs0 = arrayData[3];
	this.defineFunRs1 = arrayData[4];
	this.exponent = arrayData[5];
}

function Type3Function(){
	this.type = null;
	this.domain = [];
	this.range = [];
	this.functions = [];
	this.bounds = [];
	this.encode = null;
}

Type3Function.prototype.ParseJson = function(arrayData){
	if(arrayData.length == 0)return;
	//var type3Fun = this;
	this.type = arrayData[0];
	this.domain = arrayData[1];
	this.range = arrayData[2];
	this.functions = arrayData[3];
	this.bounds = arrayData[4];
	this.encode = arrayData[5];
}

function Type4Function(){
	thiis.type = null;
	this.domain = [];
	this.range = [];
	this.sampleData = [];
}

Type4Function.prototype.ParseJson = function(arrayData){
	if(arrayData.length == 0)return;
	//var type4Fun = this;
	this.type = arrayData[0];
	this.domain = arrayData[1];
	this.range = arrayData[2];
	this.sampleData = arrayData[3];
	
}